@extends('home/myhouse/layout')
@section('title','消息管理')
@section('content')
<div>
    <div style="height:20px;"></div>
    <div style="font-size:20px;float:left"> 添加收货地址</div>
    
    <div style="margin:0;padding:0; width:100%;height:1px;background-color:#EFEFEF;overflow:hidden;"></div>
    <div style="height:20px;"></div>
</div>
@if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
@if(session('error'))
<div class="alert alert-danger">
        <ul>
            <li>{{session('error')}}</li>
        </ul>
    </div>   
@endif

<form action="/myhouse/insert" method="post">
    {{csrf_field()}}
    <div>
        <div class="form-group col-md-12">
          <label for="inputname" class="col-md-2 control-label">选择省市：</label>
          <div class="col-md-5">
                <select class="col-md-5" name="con_region">
                    <option>请选择所在省份</option>
                    @foreach($region as $key=>$val)
                    <option value="{{$val->region_id}}">{{$val->region_name}}</option>
                    @endforeach

                </select>
          </div>
          <span class="help-block col-sm-4 col-md-5">
          </span>
        </div>

         <div class="form-group">
          <label for="inputname" class="col-md-2 control-label">收货人姓名：</label>
          <div class="col-md-5">
            <input type="text" name="consignee" value="{{old('consignee')}}" class="form-control" id="inputname" placeholder="请输入收货人姓名">
          </div>
          <span class="help-block col-sm-4 col-md-5">
          </span>
          <div style="clear:both"></div>
        </div>


        <div class="form-group">
          <label for="inputname" class="col-md-2 control-label">详细地址：</label>
          <div class="col-md-5">
            <input type="text" name="con_address" value="{{old('con_address')}}" class="form-control" id="inputname" placeholder="请输入详细地址">
          </div>
          <span class="help-block col-sm-4 col-md-5">
          </span>
          <div style="clear:both"></div>
        </div>

        <div class="form-group">
          <label for="inputname" class="col-md-2 control-label">联系电话：</label>
          <div class="col-md-5">
            <input type="text" name="con_phone" value="{{old('con_phone')}}" class="form-control" id="inputname" placeholder="请输入联系电话">
          </div>
          <span class="help-block col-sm-4 col-md-5">
          </span>
          <div style="clear:both"></div>
        </div>

        <div style="clear:both;height:50px;"></div>
    </div>
    <center>
        <button type="submit" class="btn btn-primary">提交</button> 
    </center>   
</form>
@stop